import request from "@/utils/request";
//无人机-获取无人机设备列表
export function selectUavDeviceList(query) {
  return request({
    url: "/dataAccess/selectUavDeviceList",
    method: "post",
    data: query,
  });
}
//无人机-获取无人机设备列表
export function selectUavDockInfo(query) {
  return request({
    url: `/dataAccess/selectUavDockInfo?gateway=4SEDL130010019`,
    method: "post",
    data: query,
  });
}
//无人机-获取无人机查询飞行历史分页
export function selectUavQueryFlightHistory(query) {
  return request({
    url: `/dataAccess/selectUavQueryFlightHistory`,
    method: "post",
    data: query,
  });
}
//无人机-获取无人机飞机机库监控地址
export function selectUavDockLive(query) {
  return request({
    url: `/dataAccess/selectUavDockLive?gatewaySn=4SEDL130010019`,
    method: "post",
    data: query,
  });
}
//无人机-获取飞行历史信息
export function selectUavHistory(id) {
  return request({
    url: `/dataAccess/selectUavHistory?id=${id}`,
    method: "post",
  });
}
//无人机信息
export function selectUavDeviceInfo(id) {
  return request({
    url: `/dataAccess/selectUavDeviceInfo?aircraftSN=1581F5BLD232B0011P6N`,
    method: "post",
  });
}
//无人机信息
export function selectUavAircraftLive(id) {
  return request({
    url: `/dataAccess/selectUavAircraftLive?gatewaySn=${id}`,
    method: "post",
  });
}
//无人机-获取飞行历史详情
export function getUavHistoryList(query) {
  return request({
    url: `/dataAccess/getUavHistoryList`,
    method: "post",
    data: query,
  });
}
//无人机-飞行数据统计
export function getUavHistoryTj(query) {
  return request({
    url: `/dataAccess/getUavHistoryTj`,
    method: "post",
    data: query,
  });
}
